Class NATConfigEntryImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.NATConfigEntryImpl
All Implemented Interfaces:
IPCData, NATConfigEntry

public class NATConfigEntryImpl extends IPCDataImpl implements NATConfigEntry
  • Field Details

    • name

      protected String name
    • externalPort

      protected int externalPort
    • internalPort

      protected int internalPort
    • protocol

      protected LinksysProtocol protocol
    • ipAddress

      protected IPAddress ipAddress
    • isEnable

      protected boolean isEnable
  • Constructor Details

    • NATConfigEntryImpl

      public NATConfigEntryImpl()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface NATConfigEntry
      Returns:
      String Returns a String
    • setName

      public void setName(String name)
      Specified by:
      setName in interface NATConfigEntry
      Parameters:
      name - Takes in a parameter of name
    • getExternalPort

      public int getExternalPort()
      Specified by:
      getExternalPort in interface NATConfigEntry
      Returns:
      int Returns a int
    • setExternalPort

      public void setExternalPort(int externalPort)
      Specified by:
      setExternalPort in interface NATConfigEntry
      Parameters:
      externalPort - Takes in a parameter of externalPort
    • getInternalPort

      public int getInternalPort()
      Specified by:
      getInternalPort in interface NATConfigEntry
      Returns:
      int Returns a int
    • setInternalPort

      public void setInternalPort(int internalPort)
      Specified by:
      setInternalPort in interface NATConfigEntry
      Parameters:
      internalPort - Takes in a parameter of internalPort
    • getProtocol

      public LinksysProtocol getProtocol()
      Specified by:
      getProtocol in interface NATConfigEntry
      Returns:
      LinksysProtocol Returns a LinksysProtocol
    • setProtocol

      public void setProtocol(LinksysProtocol protocol)
      Specified by:
      setProtocol in interface NATConfigEntry
      Parameters:
      protocol - Takes in a parameter of protocol
    • getIpAddress

      public IPAddress getIpAddress()
      Specified by:
      getIpAddress in interface NATConfigEntry
      Returns:
      IPAddress Returns a IPAddress
    • setIpAddress

      public void setIpAddress(IPAddress ipAddress)
      Specified by:
      setIpAddress in interface NATConfigEntry
      Parameters:
      ipAddress - Takes in a parameter of ipAddress
    • getIsEnable

      public boolean getIsEnable()
      Specified by:
      getIsEnable in interface NATConfigEntry
      Returns:
      boolean Returns a boolean
    • setIsEnable

      public void setIsEnable(boolean isEnable)
      Specified by:
      setIsEnable in interface NATConfigEntry
      Parameters:
      isEnable - Takes in a parameter of isEnable
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Specified by:
      read in class IPCDataImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object